import axios from "@/axios/axios";


/**
 * 
 * @param {*} id 
 * @param {*} obj 
 * @returns 
 */
export const categories_get=(id,obj)=>axios.get(`categories/${id}/attributes`,{params:obj})



/**
 * categories/:id/attributes/:attrId
 * @param {*} id 
 * @param {*} attrId 
 * @param {*} obj 
 * @returns
 */
export const categories_put=(id,attrId,obj)=>axios.put(`categories/${id}/attributes/${attrId}`,obj)




/**
 * 
 * @param {*} id 
 * @param {*} obj 
 * @returns 
 */
export const categories_post=(id,obj)=>axios.post(`categories/${id}/attributes`,obj)



/**
 * 
 * @param {*} id 
 * @param {*} attrId 
 * @returns
 */
export const categories_delete=(id,attrId)=>axios.delete(`categories/${id}/attributes/${attrId}`)


/**
 * 
 * @param {*} id 
 * @param {*} attrId 
 * @returns 删除
 */
export const categories_delete_get=(id,attrId,obj)=>axios.get(` categories/${id}/attributes/${attrId}`,obj)




